| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

EffectManager.h
1 // EffectManager.h
3 //
5
6 namespace nkAstraeus
7 {
13 class EffectManager final : public nkCommon::SingletonClass<EffectManager>
14 {
15 public :
16
59 Effect* createOrRetrieve (nkMemory::StringView name, EFFECT_TYPE type) ;
67 Effect* record (nkMemory::StringView name, nkMemory::UniquePtr<Effect> resource) ;
74 Effect* get (nkMemory::StringView name) ;
83 Effect* getByIndex (unsigned int id) ;
90 void rename (nkMemory::StringView currentName, nkMemory::StringView newName) ;
96 void erase (nkMemory::StringView name) ;
103 nkMemory::UniquePtr<Effect> relinquish (nkMemory::StringView name) ;
104 } ;
105 }
nkAstraeus::EffectManager::createOrRetrieve
Effect * createOrRetrieve(nkMemory::StringView name, EFFECT_TYPE type)
nkAstraeus::EFFECT_TYPE
EFFECT_TYPE
Lists all effects supported.
Definition: EffectType.h:12
nkAstraeus::EffectManager::record
Effect * record(nkMemory::StringView name, nkMemory::UniquePtr< Effect > resource)
nkAstraeus
Encompasses all API of component NilkinsAstraeus.
Definition: BlurComplexEffect.h:7
nkMemory::UniquePtr
Smart pointer owning the object instance it encapsulates.
Definition: UniquePtr.h:17
nkAstraeus::EffectManager::getByIndex
Effect * getByIndex(unsigned int id)
nkAstraeus::Effect
Base class for all effects in the component.
Definition: Effect.h:16
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkAstraeus::EffectManager::erase
void erase(nkMemory::StringView name)
nkAstraeus::EffectManager
Manages the effects available in the component.
Definition: EffectManager.h:14
nkAstraeus::EffectManager::get
Effect * get(nkMemory::StringView name)
nkAstraeus::EffectManager::rename
void rename(nkMemory::StringView currentName, nkMemory::StringView newName)
nkAstraeus::EffectManager::relinquish
nkMemory::UniquePtr< Effect > relinquish(nkMemory::StringView name)